import java.util.Random;
import java.util.Scanner;

public class Advanced_version_grabbing_red_envelopes {
    public static void main(String[] args) {
        int[] red_envelope = {9, 666, 188, 520, 99999};
        Disruption(red_envelope);
        Scanner peo = new Scanner(System.in);
        for (int i = 0; i < 5; i++) {
            System.out.println("请输入任意内容进行抽奖!");
            peo.next();
            System.out.println("恭喜你抽到了"+red_envelope[i]+"元红包!");
        }
    }

    public static void Disruption(int[] arr) {
        Random se = new Random();
        for (int i = 0; i < 5; i++) {
            int a = se.nextInt(5);
            int temp = arr[a];
            arr[a] = arr[i];
            arr[i] = temp;
        }
    }
}
